*Kathleen Gallagher Cunningham
*Inside the Politics of Self-determiantion, Oxford Univeristy Press 2014
*Replication of tables
*For further data, questions, or suggested corrections contact kgcunnin@umd.edu

*CHAPTER 4
use "Cunningham 2014 Self-determination Replication.dta"
*Table 4.2 Effects of internal structure on accommodation logit concessions_l checks checkssq logfactions federal logSDsize demands1 prevconcessions_l lagcivilwar yrsnoconcessions_l _spline1_lenient _spline2_lenient _spline3_lenient, cluster(kgcid)
logit instit checks checkssq logfactions federal logSDsize demands1 prevconcessions_l lagcivilwar yrsnoinstit _spline1_instit _spline2_instit _spline3_instit, cluster(kgcid)*Table 4.3 Effects of internal structure on accommodation in different bargaining contexts logit concessions_l checks checkssq logfactions federal logSDsize  demands1 prevconcessions_l lagcivilwar yrsnoconcessions_l _spline1_lenient _spline2_lenient _spline3_lenient if everdemocracy==1, cluster(kgcid)logit concessions_l checks checkssq logfactions federal logSDsize  demands1 prevconcessions_l lagcivilwar yrsnoconcessions_l _spline1_lenient _spline2_lenient _spline3_lenient if violentm==1, cluster(kgcid)
logit concessions_l checks checkssq logfactions federal logSDsize  demands1 prevconcessions_l lagcivilwar yrsnoconcessions_l _spline1_lenient _spline2_lenient _spline3_lenient if everindep==1, cluster(kgcid)
logit instit checks checkssq logfactions federal logSDsize  demands1 prevconcessions_l lagcivilwar yrsnoinstit _spline1_instit _spline2_instit _spline3_instit if everdemocracy==1, cluster(kgcid)
logit instit checks checkssq logfactions federal logSDsize  demands1 prevconcessions_l lagcivilwar yrsnoinstit _spline1_instit _spline2_instit _spline3_instit  if violentm==1, cluster(kgcid)
logit instit checks checkssq logfactions federal logSDsize  demands1 prevconcessions_l lagcivilwar yrsnoinstit _spline1_instit _spline2_instit _spline3_instit  if everindep==1, cluster(kgcid)*CHAPTER 5
clear
use "Cunningham 2014 Self-determination Replication.dta"
*Table 5.1 Effects of internal structure on civil war 
logit civilwaronset checks  checkssq logfactions federal lagconcessions_l kin  probability yrnocwonset _spline1_cwonset _spline2_cwonset _spline3_cwonset if ongoingcivilwar!=1, cluster(kgcid)logit acdcivilwar checks  checkssq logfactions federal lagconcessions_l kin  probability yrsnocivilwar _spline1_cw _spline2_cw _spline3_cw, cluster(kgcid)*Table 5.2 Effects of internal structure on civil war in different bargaining contexts�
logit civilwaronset checks  checkssq logfactions federal lagconcessions_l kin  probability yrnocwonset _spline1_cwonset _spline2_cwonset _spline3_cwonset if ongoingcivilwar!=1 & everdemocracy==1, cluster(kgcid)logit civilwaronset checks  checkssq logfactions federal lagconcessions_l kin  probability yrnocwonset _spline1_cwonset _spline2_cwonset _spline3_cwonset if ongoingcivilwar!=1 & violentm==1, cluster(kgcid)logit civilwaronset checks  checkssq logfactions federal lagconcessions_l kin  probability yrnocwonset _spline1_cwonset _spline2_cwonset _spline3_cwonset if ongoingcivilwar!=1 & everindep==1, cluster(kgcid)logit acdcivilwar checks  checkssq logfactions federal lagconcessions_l kin  probability yrsnocivilwar _spline1_cw _spline2_cw _spline3_cw if everdemocracy==1, cluster(kgcid)logit acdcivilwar checks  checkssq logfactions federal lagconcessions_l kin  probability yrsnocivilwar _spline1_cw _spline2_cw _spline3_cw if violentm==1, cluster(kgcid)logit acdcivilwar checks  checkssq logfactions federal lagconcessions_l kin  probability yrsnocivilwar _spline1_cw _spline2_cw _spline3_cw if everindep==1, cluster(kgcid)*Table 5.3 Hazard ratios for success of concessions use "Cunningham 2014 SD Chapter 5 Duration Replication.dta"
stset duration, id(caseid) failure(violence=1)
stcox logfactions political democracy logSDsize_relative tbase logpop loggdp milexpc, strata(numberconcession) robust
drop _d _st _t _t0
stset duration, id(caseid) failure(renegot=1)
stcox logfactions political democracy logSDsize_relative tbase logpop loggdp milexpc, strata(numberconcession) robust
drop _d _st _t _t0
stset duration_i, id(caseid) failure(violence_i=1)
stcox logfactions political democracy logSDsize_relative tbase logpop loggdp milexpc, strata(numberconcession_i) robust
drop _d _st _t _t0
stset duration_i, id(caseid) failure(renegot_i=1)
stcox logfactions political democracy logSDsize_relative tbase logpop loggdp milexpc, strata(numberconcession_i) robust

*CHAPTER 6
clear
use "Cunningham 2014 SD Chapter 6 Replication.dta"
*Table 6.2. Effects of the number of factions on internecine violencelogit coethnicfactions otherlog groupcon polity2 instab  newcombosize groupgovinyear yrscoethnicfactions _spline1_coethnicfactions _spline2_coethnicfactions _spline3_coethnicfactions if numotherfacs>0, cluster(kgcid) 
logit coethnicfactions otherviolentlog groupcon polity2 instab  newcombosize groupgovinyear yrscoethnicfactions _spline1_coethnicfactions _spline2_coethnicfactions _spline3_coethnicfactions if numotherfacs>0, cluster(kgcid) 
logit coethniccivilians otherlog groupcon polity2 instab  newcombosize groupgovinyear yrscoethniccivilians _spline1_coethniccivilians _spline2_coethniccivilians _spline3_coethniccivilians, cluster(kgcid) 
logit coethniccivilians otherviolentlog groupcon polity2 instab  newcombosize groupgovinyear yrscoethniccivilians _spline1_coethniccivilians _spline2_coethniccivilians _spline3_coethniccivilians, cluster(kgcid) 

*Table 6.3. Effect of new factions on internecine violencelogit coethnicfactions lagnewfac  numfacs lagnewfacint groupcon polity2 instab  newcombosize groupgovinyear yrscoethnicfactions _spline1_coethnicfactions _spline2_coethnicfactions _spline3_coethnicfactions if numotherfacs>0, cluster(kgcid) 
logit coethniccivilians lagnewfac  numfacs lagnewfacint groupcon polity2 instab  newcombosize groupgovinyear yrscoethniccivilians _spline1_coethniccivilians _spline2_coethniccivilians _spline3_coethniccivilians, cluster(kgcid) 

*Chapter 7
clear
use "Cunningham 2014 Self-determination Replication.dta"
*Table 7.2 Effect of accommodation and civil war on change in state veto factions 
reg checkchange1 concessions_l civilwaronset checks otherwars federal democracy, cluster(kgcid)
reg checkchange3 concessions_l civilwaronset checks otherwars federal democracy , cluster(kgcid)
reg checkchange5 concessions_l civilwaronset checks otherwars federal democracy , cluster(kgcid)reg checkchange1 instit civilwaronset checks otherwars federal democracy , cluster(kgcid)
reg checkchange3 instit civilwaronset checks otherwars federal democracy , cluster(kgcid)
reg checkchange5 instit civilwaronset checks otherwars federal democracy , cluster(kgcid)

*Table 7.3 Effect of accommodation and civil war on change in SD group factions reg facchange1 concessions_l civilwaronset factions logSDsize  kin federal democracy , cluster(kgcid)
reg facchange3 concessions_l civilwaronset factions logSDsize  kin federal democracy , cluster(kgcid)
reg facchange5 concessions_l civilwaronset factions logSDsize  kin federal democracy , cluster(kgcid)
reg facchange1 instit civilwaronset factions  logSDsize  kin federal democracy , cluster(kgcid)
reg facchange3 instit civilwaronset factions  logSDsize  kin federal democracy , cluster(kgcid)
reg facchange5 instit civilwaronset factions  logSDsize  kin federal democracy , cluster(kgcid)

